package com.vdf.sisconsolid.persistencemodule.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the tracing_type database table.
 * 
 */
@Entity
@Table(name="tracing_type")
public class TracingType implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(nullable=false)
	private Long id;

	@Column(name="days_limit", nullable=false)
	private byte daysLimit;

	@Column(nullable=false, length=50)
	private String name;

	@Column(nullable=false)
	private byte priority;

	//bi-directional many-to-one association to Tracing
	@OneToMany(mappedBy="tracingType")
	private List<Tracing> tracings;

    public TracingType() {
    }

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public byte getDaysLimit() {
		return this.daysLimit;
	}

	public void setDaysLimit(byte daysLimit) {
		this.daysLimit = daysLimit;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public byte getPriority() {
		return this.priority;
	}

	public void setPriority(byte priority) {
		this.priority = priority;
	}

	public List<Tracing> getTracings() {
		return this.tracings;
	}

	public void setTracings(List<Tracing> tracings) {
		this.tracings = tracings;
	}
	
}